package com.chenyuxin.ilp.model.dto.user;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;


@Data
public class RegisterFormDto {
    @NotBlank(message = "用户名不为空")
    private String username;
    @NotBlank(message = "电话号码不为空")
    private String phone;
    @Pattern(regexp = "^(?=.*[^0-9])[A-Za-z0-9]{8,16}$", message = "密码必须包含非数字元素，且长度在8到16位之间")
    private String password;
}
